package com.gf.framework.translatordemo.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gf.framework.translatordemo.translator.StudentAgeTranslator;
import com.gf.framework.translatordemo.translator.StudentTelePhoneTranslator;
import com.gf.framework.web.annotation.Translate;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author gaofei
 * @Description
 * @create 2022/5/26 11:37
 */
@Data
public class StudentVo implements Serializable {
    private Integer id;
    private String name;
    @JsonIgnore
    private LocalDate birth;
    @Translate(translator = StudentAgeTranslator.class, from = "birth")
    private Integer age;
    @Translate(translator = StudentTelePhoneTranslator.class, from = "telephone")
    String telephone;
}
